<?php
namespace app\index\controller;

use think\response\Json;

class Index
{
    public function index()
    {
        return json(['code'=>1,'msg'=>'success']);
    }

    public function miss(): Json
    {
        return json(['code'=>404,'msg'=>'route not found'],404);
    }
}
